@extends('common.common')
@section('content')
    <div class="news-top">
        <p>新闻动态</p>
        <div class="line"></div>
        <p>携手创业者，共同创造伟大企业</p>
    </div>
    <div class="news-content">
        <div class="content">
            <ul>
                @foreach ($news as $new)
                    <a href="{{ route('news.show', $new->id ) }}">
                        <li>
                            <img src="{{asset('upload')}}/{{$new->imgurl}}" alt="">
                            <div>
                                <p>{{$new->title}}</p>
                                <p>{{  str_limit(strip_tags($new->content), 100) }}</p>
                                <div>
                                    <span>{{$new->created_at->format('Y-m-d')}}</span>
                                    <img src="{{asset('images/mores.png')}}" alt="">
                                </div>
                            </div>
                        </li>
                    </a>
                @endforeach
            </ul>
        </div>
        {{--<div style="margin:0 auto;width:1200px;">{!! $news->links() !!}</div>--}}
    </div>
@endsection